﻿@using Entidades.Sistema.Produccion
@using System.Collections.ObjectModel;

@model DiagramacionProduccion

@using (Html.BeginForm("PostInicioPartial", "DiagramacionProduccion", FormMethod.Post))
{
    <strong style="color: Blue">@ViewBag.Message</strong><br /><br />
    
    @Html.HiddenFor(model => model.IdDiagramacionProduccion)
    @Html.HiddenFor(model => model.Estado)
    
    <div class="line">
        @Html.DevExpress().Label(
            settings => {
                settings.ControlStyle.CssClass = "label";
                settings.Text = "Fecha de producción:";
                settings.AssociatedControlName = "Fecha";
            }
        ).GetHtml()        
    
        @Html.DevExpress().DateEdit(DateSettings =>
        {
            DateSettings.Name = "Fecha";
            DateSettings.Properties.UseMaskBehavior = true;
            DateSettings.Properties.EditFormat = EditFormat.Custom;
            DateSettings.Properties.EditFormatString = "dd MMMM, yyyy";
            DateSettings.Properties.DisplayFormatString = "dd MMMM, yyyy";
            DateSettings.Properties.EnableClientSideAPI = true;
            DateSettings.Properties.MinDate = DateTime.Today;
        }).Bind(Model.Fecha).GetHtml()
    </div>
    
    <hr />
    <div class="line">
        @Html.DevExpress().Label(
            settings => {
                settings.ControlStyle.CssClass = "label";
            }).GetHtml()
        @Html.DevExpress().Button(buttonSettings => {
                buttonSettings.Name = "btnGoToPedidosTab;";
                buttonSettings.Text = "Siguiente";
                buttonSettings.UseSubmitBehavior = true;
            }).GetHtml()
        @Html.DevExpress().Button(
            btnSettings =>
            {
                btnSettings.Name = "btnCancel";
                btnSettings.ControlStyle.CssClass = "button";
                btnSettings.Text = "Cancelar";
                btnSettings.ClientSideEvents.Click = "function(s, e){ document.location='" + DevExpressHelper.GetUrl(new { Controller = "DiagramacionProduccion", Action = "Index" }) + "'; }";
            }).GetHtml()
    </div>
}







